<?php
	class VoteSubjectModel extends Model{
		public $_validate =	array(
				array('title','require','投票主题名称必须填写！'),
				array('title','2,20','投票主题必须在2到20位之间！',Model::MUST_VALIDATE,'length'),
				array('info','0,200','投票主题描述不得大于200位！',Model::VALUE_VAILIDATE,'length'),
		);
		
		public $_auto =	array(
				array('date','time',self::MODEL_INSERT,'function'),
				array('state','getState',Model:: MODEL_INSERT,'callback'),
		);
		
		//自动填充审核状态state未0，未审核
		public function getState(){
			return 0;
		}
	}
?>